package com.dana.gomoku.service;

import com.dana.gomoku.mapper.UserMapper;
import com.dana.gomoku.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    //注册
    public Integer queryInsert(String username,String password){
        return userMapper.insert(username,password);
    }
    //登录
    public User querySelect(String username){
        User user = userMapper.select(username);
        return user;
    }
}
